import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 全局引入按需引入UI库 vant
import '@/plugins/vant'
// 移动端适配
import 'lib-flexible/flexible.js'
import axios from 'axios'
import qs from 'qs'

// 配置请求的根路径
// http://labapproval.pxy.fit/
axios.defaults.baseURL = ' http://39.96.36.251'
// axios.interceptors.request.use(config => {
//   config.headers.Authorization = window.sessionStorage.getItem()

//   // 在最后必须 return config
//   return config
// })
Vue.prototype.$http = axios
Vue.prototype.$qs = qs

// filters
import './filters'
Vue.config.productionTip = false
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
